<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2d变形</title>
    <style>
        .box{
            height: 100px;
            width: 100px;
            background-color: bisque;
            line-height: 100px;
            text-align: center;
            margin-top: 50px;
            margin-left: 100px;
            transition: 3s;

        }
        .box1:hover{
            transform:  rotate(45deg);
        }
        .box2:hover{
            transform:  skewX(-45deg);
        }
        .box3:hover{
            transform:  translateX(100px);
        }
        .box4:hover{
            transform:  scale(0.5);
        }
    </style>
</head>
<body>
    <div class="box box1">
        旋转
    </div>

    <div class="box box2">
        倾斜
    </div>
    <div class="box box3">
        移动
    </div>
    <div class="box box4">
        缩放
    </div>
</body>
</html>